<?php
	
namespace app\api\controller\v1;
use app\api\model\User;
use think\controller;

class UserController{
	public function read($id = 0){
		$user = User::get($id);
		if($user){
			return json($user);
		}else{
			//return json(['error' => '用户不存在'] ,404);
			abort(404);
		}
	}
}	

?>